﻿using Basic.FormRemoteModel;
using Basic.FormRemoteModel.PhyFormInter.Model;
using SqlSugar;

namespace Basic.FormModel.DB
{
    [SugarTable("PhysicalTableColumn")]
    public class DBPhysicalTableColumn
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id
        {
            get;
            set;
        }
        public long FormId { get; set; }

        public long PhyTableId { get; set; }
        /// <summary>
        /// 列名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 列中文说明
        /// </summary>
        public string Label { get; set; }

        /// <summary>
        /// 数据基础类型
        /// </summary>
        public FormRecordDataType DataType { get; set; }

        /// <summary>
        /// 功能类型
        /// </summary>
        public FormColumnFuncType FuncType { get; set; }

        /// <summary>
        /// 列的配置
        /// </summary>
        [SugarColumn(IsJson = true)]
        public PhyColumnSet ColumnSet { get; set; }
    }
}
